// export const "color" 就是指令的名称 
interface Iparams {
  [propName:string]:any
}

export const color = { // 改变字体颜色的指令
    mounted(el:Iparams,binding:Iparams){
      el.style.color = binding.value;
   }
}

export const backColor = { // 背景颜色的指令
    mounted(el:Iparams,binding:Iparams){
      el.style.background = binding.value;
   }
}


export const bor = { // 背景颜色的指令
    mounted(el:Iparams,binding:Iparams){
      el.style.border = `1px solid ${binding.value}`;
   }
}